package com.qingsong.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.time.LocalDateTime;

/**
 * @author qingsong
 */
@Schema(description = "员工修改DTO")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class EmpUpdateDTO {

    @NotNull(message = "主键不能为空")
    @Schema(description = "主键")
    private Long id;

    @Schema(description = "员工姓名")
    private String username;

    @Schema(description = "员工密码")
    private String password;

    @Schema(description = "员工头像")
    private String avatar;

    @Schema(description = "电话号码")
    private String phone;

    @Schema(description = "微信号码")
    private String wechat;

    @Schema(description = "电子邮件")
    private String email;

    @Schema(description = "所在省份")
    private String province;

    @Schema(description = "真实姓名")
    private String realname;

    @Schema(description = "身份证号")
    private String idcard;

    @Schema(description = "地址名称")
    private String address;

    @Schema(description = "所在部门")
    private Long fkDeptId;

    @Schema(description = "真实姓名")
    private LocalDateTime hiredate;

    @Size(min = 1, max = 512, message = "描述长度必须在1~256之间")
    @Schema(description = "描述")
    private String info;

    private Integer age;

}


